<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<?=$this->config->item('charset');?>">
	<title><?=$username?>收藏的菜谱_<?=$this->config->item('site_name');?></title>

	<meta name="keywords" content="<?=$this->config->item('site_keywords');?>" />
	<meta name="description" content="<?=$this->config->item('site_description');?>" />
	<link href="<?=base_url('static/css/global.css')?>" rel="stylesheet" type="text/css" media="screen">
	<link href="<?=base_url('static/css/usercenter.css')?>" rel="stylesheet" type="text/css" media="screen">
	<script src="<?=path_res('static/js/jquery.js')?>"></script>
	<script src="<?=path_res('static/js/jquery-ui.min.js')?>"></script>
	<script src="<?=path_res('static/js/tempo.min.js')?>"></script>
	<script src="<?=path_res('static/js/functions.js')?>"></script>
	<script src="<?=path_res('static/js/jquery.autocomplete-min.js')?>"></script>
</head>
<body>

<? $this->load->view('header'); ?>
 


<? $this->load->view('auth/user_menu'); ?>
<div class="user_main clearfix">
	<div class="user_inner_tab">
		<ul class="user_inner_tab_ul">
			<li><a class="<?php if ($menu_type == 'fav'){echo 'current';}?> link" href="<?=site_url('/u/'.$uid.'/fav')?>">收藏的菜谱</a></li>
			<li><a class="<?php if ($menu_type == 'fav_cd'){echo 'current';}?> link" href="<?=site_url('/u/'.$uid.'/fav_cd')?>">收藏的菜单</a></li> 
			</li>
		</ul>
	</div>
	<?php if($user_caipu || $like_shicai):?>
	<div class="usc_w clearfix">
		<div class="listtyle3_list1 clearfix" id="listtyle1_list">
			<?php $index = 0;?>
			<?php foreach( $user_caipu as $caipu) :?>
			<?php $index++;?>
			<?php $index_array = array(1,4,7,10);?>
			<div class="listtyle3 listtyle3_332 <?php if (in_array($index, $index_array)){echo 'ml0';}?>">
				<div class="img">
					<a target="_blank" href="<?=site_url('recipe/'.$caipu['id'])?>" title="<?=$caipu['title']?>" class="img"><img class="cpimg" alt="<?=$caipu['title']?>" src="<?=server_img($caipu['coverImage'])?>" width="232" height="232"></a>
				</div>
				<div class="info2">
					<a target="_blank" title="<?=$caipu['title']?>" href="<?=site_url('recipe/'.$caipu['id'])?>" class="img"></a>
					<div class="info2_c" style="left: 232px; opacity: 0;">
						<a target="_blank" title="<?=$caipu['title']?>" href="<?=site_url('recipe/'.$caipu['id'])?>" class="link_cp">
							<ul><li class="zl col2 pngFix">小黄花鱼</li><li class="gy pngFix">烧</li><li class="kw pngFix">咸鲜味</li><li class="nd pngFix">初级入门</li><li class="sj pngFix">&lt;15分钟</li></ul>
						</a>
					</div>
				</div>
				<div class="info3">
					<h3><a target="_blank" title="<?=$caipu['title']?>" href="<?=site_url('recipe/'.$caipu['id'])?>"><?=$caipu['title']?></a></h3>
					<div class="d1"><span>制作需要 <?=$caipu['costtime']?></span></div>
					<a target="_blank" class="author" href="<?=site_url('u/'.$caipu['authorid'])?>"><?=$caipu['author']?></a>
				</div>
			</div>
			<?php endforeach;?>
		</div>
		
		<div class="fliterstyle11" id="fliterstyle1">
			<div class="fliterstyle1_main">
				<ul class="tab"><li class="li1 current"><a href="####">食材</a></li></ul>
				<div class="tabcon" po="1" style="display:block;">
					<dl class="clearfix on">
						<dd class="clearfix row2 bb0">
							<?php foreach( $like_shicai as $shicai) :?>
							<a href="<?=site_url('ingredients/'.$shicai['id'])?>" target="_blank" title="<?=$shicai['title']?>的做法大全"><strong><?=$shicai['title']?></strong><em>-</em></a>
							<?php endforeach;?>
						</dd>
					</dl>
				</div>
			</div>
		</div>
	</div>
	<?php else:?>
		<div class="nocontenttt">暂无数据</div>
	<?php endif;?>
</div>
<div class="pager"><?= $this->pagination->create_links();?></div>

<? $this->load->view('footer'); ?>